package com.wlw.eye.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

class HotAdatpter(fm: FragmentManager, list: ArrayList<Fragment>, titles: MutableList<String>) : FragmentPagerAdapter(fm) {
    var mList = list
    var mTitles = titles
    override fun getItem(position: Int): Fragment = mList[position]
    override fun getCount(): Int = mList.size
    override fun getPageTitle(position: Int): CharSequence? = mTitles[position]
}